#include <iostream>
#include <string>
using namespace std;
 
int main()
{
    string str;
    while(getline(cin, str))
    {
        int sz = str.size();
        for(int i = 0; i < sz; ++i)
        {
            if(isdigit(str[i]))
            {
                cout << str[i];
            }
        }
        cout << endl;
    }
    return 0;
}